/**
 * ANNCSR (2010-2011)
 */
package net.abbp.mtr.event;

import java.util.EventObject;

import net.abbp.mtr.data.Record;


/**
 * 
 * 数据到达事件
 * 
 * @version 1.0 2010-12-26
 * @author lexloo(lexloo@gmail.com)
 * @since MTR 1.0
 */
@SuppressWarnings("serial")
public class DataArriveEvent extends EventObject {
	private String channel;
	private Record data;

	/**
	 * @param source
	 */
	public DataArriveEvent(Object source, String channel, Record data) {
		super(source);
		this.channel = channel;
		this.data = data;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getChannel() {
		return channel;
	}

	public void setData(Record data) {
		this.data = data;
	}

	public Record getData() {
		return data;
	}
}
